package com.tdcoding.chat.entities;

import io.protostuff.Tag;

public class ChatInfo extends BaseInfo {   

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Tag(value=7)
	private int chatType; // 0单聊、1群聊、2通知、 3推送
	/**
	 * 0单聊、1群聊、2通知、 3推送 0、单聊（0文本，1图片，2语音） 1、群聊（0文本，1图片，2语音）
	 * 2、通知（20上线通知、21邮件提醒、22空间提醒、23好友通知、24群通知、25文件通知）
	 * 好友通知（230申请好友、231邀请好友、232同意、233拒绝、234删除好友、235拉黑、236取消拉黑）
	 * 群通知（240群助手、241申请加群、242邀请加群、243同意、244拒绝、245提升管理员、246撤销管理员
	 * ，247管理员禁言、248管理员取消禁言、249个人禁言、2410个人取消禁言、2411退群、2412踢人、2413解散群）
	 * 3、推送（30新闻推送）
	 */
	@Tag(value=8)
	private int unread; // 未读消息
	@Tag(value=9)
	private int loadState; // 加载状态
	@Tag(value=10)
	private int sendState; // 发送状态
	@Tag(value=11)
	private int readState; // 消息阅读状态
	@Tag(value=12)
	private int voiceState; //语音消息播放状态
	@Tag(value=13)
	private int applyState; //申请加好友审核状态
	@Tag(value=14)
	private int chatFrom;//消息来源
	@Tag(value=15)
	private int bodyType;//消息内容类型
	@Tag(value=16)
	private int duration; // 语音时长
	@Tag(value=17)
	private long unionId; //接收+发送拼接ID
	@Tag(value=18)
	private long chatId; 		// 发送者ID
	@Tag(value=19)
	private long chatToId; // 接收者ID
	@Tag(value=20)
	private long chatToRid; //一对多实际接收者ID
	@Tag(value=21)
	private String chatDate;// 消息日期

	@Tag(value=22)
	private String chatName; // 发送者名（接到消息后显示）
	@Tag(value=23)
	private String chatToName; // 接收者名（用于本人发送消息后，消息列表显示）
	@Tag(value=24)
	private String chatHead;	//发送者头像
	@Tag(value=25)
	private String chatToHead;// 比如群头像
	@Tag(value=26)
	private Object chatContent;// 聊天消息内容
	
	public int getChatType() {
		return chatType;
	}

	public void setChatType(int chatType) {
		this.chatType = chatType;
	}

	public int getUnread() {
		return unread;
	}

	public void setUnread(int unread) {
		this.unread = unread;
	}

	public int getLoadState() {
		return loadState;
	}

	public void setLoadState(int loadState) {
		this.loadState = loadState;
	}

	public int getSendState() {
		return sendState;
	}

	public void setSendState(int sendState) {
		this.sendState = sendState;
	}

	public int getReadState() {
		return readState;
	}

	public void setReadState(int readState) {
		this.readState = readState;
	}

	public int getVoiceState() {
		return voiceState;
	}

	public void setVoiceState(int voiceState) {
		this.voiceState = voiceState;
	}

	public int getApplyState() {
		return applyState;
	}

	public void setApplyState(int applyState) {
		this.applyState = applyState;
	}

	public int getChatFrom() {
		return chatFrom;
	}

	public void setChatFrom(int chatFrom) {
		this.chatFrom = chatFrom;
	}

	public int getBodyType() {
		return bodyType;
	}

	public void setBodyType(int bodyType) {
		this.bodyType = bodyType;
	}

	public int getDuration() {
		return duration;
	}

	public void setDuration(int duration) {
		this.duration = duration;
	}

	public long getUnionId() {
		return unionId;
	}

	public void setUnionId(long unionId) {
		this.unionId = unionId;
	}

	public long getChatId() {
		return chatId;
	}

	public void setChatId(long chatId) {
		this.chatId = chatId;
	}

	public long getChatToId() {
		return chatToId;
	}

	public void setChatToId(long chatToId) {
		this.chatToId = chatToId;
	}

	public long getChatToRid() {
		return chatToRid;
	}

	public void setChatToRid(long chatToRid) {
		this.chatToRid = chatToRid;
	}

	public String getChatDate() {
		return chatDate;
	}

	public void setChatDate(String chatDate) {
		this.chatDate = chatDate;
	}

	public String getChatName() {
		return chatName;
	}

	public void setChatName(String chatName) {
		this.chatName = chatName;
	}

	public String getChatToName() {
		return chatToName;
	}

	public void setChatToName(String chatToName) {
		this.chatToName = chatToName;
	}

	public String getChatHead() {
		return chatHead;
	}

	public void setChatHead(String chatHead) {
		this.chatHead = chatHead;
	}

	public String getChatToHead() {
		return chatToHead;
	}

	public void setChatToHead(String chatToHead) {
		this.chatToHead = chatToHead;
	}

	public Object getChatContent() {
		return chatContent;
	}

	public void setChatContent(Object chatContent) {
		this.chatContent = chatContent;
	}

	@Override
	public String toString() {
		return "ChatInfo [chatType=" + chatType + ", unread=" + unread + ", loadState=" + loadState + ", sendState="
				+ sendState + ", readState=" + readState + ", voiceState=" + voiceState + ", applyState=" + applyState
				+ ", chatFrom=" + chatFrom + ", bodyType=" + bodyType + ", duration=" + duration + ", unionId="
				+ unionId + ", chatId=" + chatId + ", chatToId=" + chatToId + ", chatToRid=" + chatToRid + ", chatDate="
				+ chatDate + ", chatName=" + chatName + ", chatToName=" + chatToName
				+ ", chatHead=" + chatHead + ", chatToHead=" + chatToHead + ", chatContent=" + chatContent + "]";
	}
	
}   
